IATA Consolidated Exchange Rates

(0 reviews)

OAS 3.0

Below is the equivalent OAS 3.0 specification for this API.

{
  "openapi": "3.0.0",
  "info": {
    "title": "IATA Consolidated Exchange Rates",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.iata.org/references"
    }
  ],
  "paths": {
    "/icer": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/responseType"
                }
              }
            }
          },
          "400": {
            "description": ""
          },
          "403": {
            "description": ""
          },
          "404": {
            "description": ""
          },
          "405": {
            "description": ""
          },
          "500": {
            "description": ""
          }
        },
        "operationId": "GET_icer",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "The FROM currency",
            "schema": {
              "$ref": "#/components/schemas/currencyType"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "The TO currency",
            "schema": {
              "$ref": "#/components/schemas/currencyType"
            }
          },
          {
            "name": "effectiveDate",
            "in": "query",
            "description": "The date in ISO format (yyyy-mm-dd) that the rate is requested for. The default is TODAY in UTC.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "currencyType": {
        "pattern": "^[A-Z]{3}
__COMPONENT_PLACEHOLDER__
quot;, "type": "string" }, "fxRatesType": { "type": "object", "properties": { "from": { "$ref": "#/components/schemas/currencyType" }, "to": { "$ref": "#/components/schemas/currencyType" }, "effectiveDate": { "type": "string", "format": "date" }, "conversionRate": { "type": "number" } }, "required": [ "from", "to", "effectiveDate", "conversionRate" ] }, "responseType": { "type": "array", "items": { "$ref": "#/components/schemas/fxRatesType" } } }, "responses": {}, "parameters": {}, "examples": {}, "requestBodies": {}, "headers": {}, "securitySchemes": {}, "links": {}, "callbacks": {} } }

Reviews